<?php
use think\Config;
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo Config::get('appname');?></title>
<link href="/static/css/default.css" rel="stylesheet" type="text/css">
<link href="/static/css/style/green.css" rel="stylesheet" type="text/css" id = 'link'>
<style>
html{overflow:hidden;}
</style>
</head>

<body >
        <div class="classify">修改密码</div>
        <!--toolbar start-->
       
    <form>
        <table class="formtable">
        
        <tbody>
        
            
          
            <tr>
            <td class="tlabel">新密码</td>
            <td><input type="password" class="forminput inputstyle" id="pass1" value=""></td>
            <td class="tlabel"></td>
            <td>
            </td>
            </tr>
            
            <tr>
                <td class="tlabel">重复密码</td>
                    <td><input type="password" class="forminput inputstyle" id="pass2" value=""></td>
                    <td class="tlabel"></td>
                    <td>
                    </td>
                    </tr>
            
         
            
        </tbody>
        
        </table>
        
        <div class="formbtn">
        <input type="button" value="保存"  class="btnsave">
        <input type="button" value="重置"  class="btncancel">
        </div>
        
    </form>

</body>
<script type="text/javascript" src="/static/js/jquery.js"></script>
<script type="text/javascript" src="/static/js/common.js"></script>
<script type="text/javascript" src="/static/js/skin.js"></script>
<script src="/static/js/layer/layer.js"></script>
<script>
$(function(){
    $(".btnsave").click(function(){
        var pass1 =$("#pass1").val();
        var pass2 =$("#pass2").val();

        $.post("/Index/home/updatepass",{pass1:pass1,pass2:pass2},function(data){
            layer.msg(data.message);
            setTimeout(function(){
                location.reload();
            },1000);
           
        });

    });

});
</script>
</html>
